package com.sinosoft.tcmneim.service.impl;


import com.sinosoft.tcmneim.dao.TblAnnexDao;
import com.sinosoft.tcmneim.dataObject.TblAnnex;
import com.sinosoft.tcmneim.service.TblAnnexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblAnnexServiceImpl implements TblAnnexService {

    @Resource
    private TblAnnexDao tblAnnexDao;

    @Override
    public List<TblAnnex> selectTblAnnexList() {
        return tblAnnexDao.selectTblAnnexList();
    }

    @Override
    public  List<TblAnnex> selectTblAnnexByItemCode(String itemCode) {
        return tblAnnexDao.selectTblAnnexByItemCode(itemCode);
    }

    @Override
    public int insertTblAnnex(TblAnnex tblAnnex) {
        return tblAnnexDao.insertTblAnnex(tblAnnex);
    }

    @Override
    public int updateTblAnnex(TblAnnex tblAnnex) {
        return tblAnnexDao.updateTblAnnex(tblAnnex);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblAnnexDao.deleteByItemCode(itemCode);
    }
}
